package com.wwtech.epp.ui.activity.main.contract;

import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.Map;

/**
 * @author hzp
 * @Package The contract for MainActivity
 * @Description: $description
 * @date 2017/08/02 08:43:44
 */
public interface MainContract {
    interface View extends BaseView<MainContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void setToekn(String content);

        void getTokenFailed();
    }

    interface MainContractPresenter extends BasePresenter {
        /**
         *用户登录服务器
         */
        void userLogin(Map map);

        /**
         * 获取用户登录融云的token
         * @param map
         */
        void getUserToken(Map map);

        void doGetToken();
    }
}